package kr.hkit.androidcomplete02.ch13;

import kr.hyunist.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch13AMainActivity extends Activity {
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.ch13_amain);
		}
		
		public void mOnClick(View v){
			Intent intent = null;
			switch(v.getId()){
			
			case R.id.ch13_btn01:
				intent = new Intent(this, ProgressBarEx.class);
				break;
			
			case R.id.ch13_btn02:
				intent = new Intent(this, ProgressTitle1Ex.class);
				break;
				
			case R.id.ch13_btn03:
				intent = new Intent(this, ProgressTitle2Ex.class);
				break;	
				
			case R.id.ch13_btn04:
				intent = new Intent(this, SeekBarEx.class);
				break;
				
			case R.id.ch13_btn05:
				intent = new Intent(this, RatingBarEx.class);
				break;	
				
			case R.id.ch13_btn06:
				intent = new Intent(this, DatePickEx.class);
				break;	
				
			case R.id.ch13_btn07:
				intent = new Intent(this, PickerDialogEx.class);
				break;	
				
			case R.id.ch13_btn08:
				intent = new Intent(this, WebViewEx.class);
				break;	
				
			case R.id.ch13_btn09:
				intent = new Intent(this, SwitchTestEx.class);
				break;	
				
			case R.id.ch13_btn10:
				intent = new Intent(this, SpaceEx.class);
				break;	
				
			case R.id.ch13_btn11:
				intent = new Intent(this, NumberPickerEx.class);
				break;	
				
			case R.id.ch13_btn12:
				intent = new Intent(this, CalendarViewEx.class);
				break;	
				
			case R.id.ch13_btn13:
				intent = new Intent(this, ListPopupwindowEx.class);
				break;	
			}	
			
			startActivity(intent);
			
		}
}
